package com.wenhao.newcode.shopee;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

/**
 * @author Wenhao Tong
 * @create 2021-07-16 23:04
 */
public class Main2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String next = scanner.next();
        int pre = 0;
        List<String> words = new ArrayList<>();
        for (int i = 1;i < next.length();i++) {
            char c = next.charAt(i);
            if (c <= 'Z' && c >='A') {
                words.add(next.substring(pre,i));
                pre = i;
            }
            if (c == '_' || c =='-') {
                words.add(next.substring(pre,i));
                pre = i + 1;
            }
        }
        words.add(next.substring(pre));
        String temp1 = words.get(0).replaceAll("^.",words.get(0).substring(0,1).toUpperCase());
        String temp2 = words.get(0).toLowerCase();
        String temp3 = temp2;
        String temp4 = temp2;
        for (int i = 1;i < words.size();i++) {
            temp1 += words.get(i).replaceAll("^.",words.get(i).substring(0,1).toUpperCase());
            temp2 += words.get(i).replaceAll("^.",words.get(i).substring(0,1).toUpperCase());
            temp3 += "_" + words.get(i).toLowerCase();
            temp4 += "-" + words.get(i).toLowerCase();
        }
        System.out.println(temp1 + " " + temp2 + " " + temp3 + " " + temp4);
    }
}
